import Session from 'framework/Session'

class TopMessage {
  static set(message) {
    return Session.set('top_message', message);
  }

  static get() {
    const message = Session.get('top_message');
    Session.del('top_message');
    return message;
  }

  static has() {
    return Session.has('top_message');
  }
}

export {
  TopMessage
}
